package schoolWork;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: tao
 * Date: 2023-11-13
 * Time: 14:43
 */
public class Test2 {
    public static double summer(double using) {
        return using * 0.49;
    }
    public static double winter(double using) {
        return (using + 20.0) * 0.49;
    }
    public static void main(String[] args) {
        double using = 100.0;
        double summer = summer(using);
        double winter = winter(using);
        System.out.println("夏季费用：" + summer);
        System.out.println("冬季费用：" + winter);
    }
}
